#include "swf.h"
using namespace swfstream;
void RGB::print() {
	//	fread(buf,tag_header.length,1,f);
	printf("RGB(0x%X,0x%X,0x%X)\n", (uint) r, (uint) g, (uint) b);
}
void Color::print() {
}
RGB* RGB::from_file(FILE* f) {
	//puts("reading RGB");
	struct RGB* r = new RGB;
	r->r = getc(f);
	r->g = getc(f);
	r->b = getc(f);
	return r;
}
TiXmlElement* RGB::toTiXmlElement() {
	TiXmlElement *r = new TiXmlElement("RGB");
	r->SetAttribute("r", this->r);
	r->SetAttribute("g", this->g);
	r->SetAttribute("b", this->b);
	return r;
}
